home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / term_setup.1 < prev    next >
Text File  |  1995-07-25  |  9KB  |  199 lines

  1.  
  2.  
  3.  
  4.      TTTTEEEERRRRMMMM____SSSSEEEETTTTUUUUPPPP((((1111))))             UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV             TTTTEEEERRRRMMMM____SSSSEEEETTTTUUUUPPPP((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           linecheck, test - debugging tools for term
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           lllliiiinnnneeeecccchhhheeeecccckkkk [ escape ... ] < /dev/tty?? >/dev/tty??
  13.  
  14.           tttteeeesssstttt [ -d<debug-level> ]
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.           You should perform two sets of tests before you ever try to
  18.           run _t_e_r_m itself.  The _l_i_n_e_c_h_e_c_k program performs a first-
  19.           order test of the transparency of the link.  The _t_e_s_t
  20.           program lets you exercise _t_e_r_m and its clients locally by
  21.           starting two _t_e_r_m daemons on the same system.
  22.  
  23.           _L_i_n_e_c_h_e_c_k sends packets, once per second, each of which
  24.           contains one of the 256 possible 8-bit character codes.  The
  25.           diagnostic output helps you determine which characters do
  26.           not get through.  This is important, since almost all of the
  27.           problems associated with getting _t_e_r_m running occur because
  28.           individual characters or character sequences do not get
  29.           through the serial link or cause other characters to be sent
  30.           and/or echoed by the link.  _T_e_r_m can easily be told to avoid
  31.           sending these characters by listing them in the termrc file,
  32.           the problem is determining which ones to avoid.  _L_i_n_e_c_h_e_c_k
  33.           tests all 256 individual characters and helps you determine
  34.           which are not getting through.  It only checks individual
  35.           characters, not character sequences.
  36.  
  37.           _L_i_n_e_c_h_e_c_k must be run on both systems the same way _t_e_r_m is
  38.           run.  That is, the stdin and stdout should be directed to
  39.           the serial port while the stderr goes to a log file.
  40.           Remotely you can type
  41.  
  42.              linecheck 2>/tmp/linecheck.log
  43.  
  44.           to the sh, or
  45.  
  46.              sh -c 'exec linecheck 2> /tmp/linecheck.log'
  47.  
  48.           to the csh.  Locally you should escape from your comm
  49.           program and type something like
  50.  
  51.              linecheck < /dev/modem > /dev/modem 2> /tmp/linecheck.log
  52.  
  53.           to a sh.
  54.  
  55.           You can tell linecheck not to test certain characters by
  56.           listing their decimal numbers on the command line.  For
  57.           instance, if you know flow-control will get eaten, you can
  58.           use "linecheck 17 19", and it won't test those chars.  Or,
  59.           if your link goes through an _r_l_o_g_i_n(1) on the remote end,
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 7/3/94)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      TTTTEEEERRRRMMMM____SSSSEEEETTTTUUUUPPPP((((1111))))             UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV             TTTTEEEERRRRMMMM____SSSSEEEETTTTUUUUPPPP((((1111))))
  71.  
  72.  
  73.  
  74.           you will want to put 126 on the command line to escape the
  75.           '~' character.  Also, in this case, you'll want to use
  76.  
  77.              rlogin <system> -8 -L
  78.  
  79.           in a bid to establish a maximally transparent rlogin.
  80.  
  81.           Once _l_i_n_e_c_h_e_c_k has finished running on both ends, you should
  82.           examine the respective log files on the two systems.  These
  83.           files will contain lines of the form '<num> sending char'
  84.           and '<num> received valid', where <num> is the decimal
  85.           number of the character in the packet. These indicate that
  86.           the local _l_i_n_e_c_h_e_c_k (the one generating the log file) sent
  87.           the character or received the character from the other
  88.           _l_i_n_e_c_h_e_c_k.  It's normal if the 'sending' and 'received'
  89.           numbers are not in sync.
  90.  
  91.           Lines of the form 'Invalid packet: <data>' are the
  92.           interesting output.  They indicate a packet was received,
  93.           but was corrupted.  This may be due to simple line noise, or
  94.           to the opacity of the link to a character generated by
  95.           either the remote or the local _l_i_n_e_c_h_e_c_k program.  At least
  96.           three possible kinds of link opacity can lead to invalid
  97.           packets.  When a character that should be be escaped is sent
  98.           the link may simply not transmit the character in question,
  99.           or the link may transmit a different or extra characters.
  100.           Also, at the same time, the link itself may echo characters
  101.           back to the system which sent the character in the first
  102.           place.  You must study the log files from both systems to
  103.           determine which direction of the link causes the problems
  104.           and which characters should be escaped on which system.
  105.           Real link problems like these should be repeatable while
  106.           line noise effects will not.
  107.  
  108.           The bottom of the log file lists characters that linecheck
  109.           believes should be escaped by the other system in the termrc
  110.           file.  These are characters that the other system sent, but
  111.           which were not received correctly.  If you had no invalid
  112.           packets then this summary is probably reliable.  If there
  113.           were invalid packets it is possible that _l_i_n_e_c_h_e_c_k'_s
  114.           recommendations are wrong.  You must examine both logs
  115.           closely to determine what caused the invalid packets.
  116.  
  117.           If, for some reason, you get stuck out in lala land, and
  118.           can't kill the remote program, try typing '00000'.  That
  119.           should kill it, and restore your terminal.
  120.  
  121.           _T_e_s_t, when run, establishes two connected instances of _t_e_r_m
  122.           on the local system so you may see if they and the clients
  123.           work. To avoid problems with other programs also called
  124.           'test' you should run _t_e_s_t from the source directory of _t_e_r_m
  125.           by typing
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 7/3/94)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      TTTTEEEERRRRMMMM____SSSSEEEETTTTUUUUPPPP((((1111))))             UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV             TTTTEEEERRRRMMMM____SSSSEEEETTTTUUUUPPPP((((1111))))
  137.  
  138.  
  139.  
  140.              ./test [ -d<debug-level> ]
  141.  
  142.           _T_e_s_t opens the files 'local.log' and 'remote.log' in the
  143.           local directory to record the stderr output of the two term
  144.           daemons.  The -d<debug-level> option sets the debugging
  145.           level for the test.  The termrc file is used to set the
  146.           other parameters of both daemons.  If you need to debug you
  147.           can use 64 or even 478.  Familiarity with the sources is
  148.           essential if you use debugging.
  149.  
  150.           Once ./test is running you should be able to use the clients
  151.           from any shell:
  152.  
  153.              trsh
  154.  
  155.           give you a 'remote' shell.  You may need to type 'reset ^J'
  156.           to reset the tty of the new shell (that's Cntl-J).
  157.  
  158.              trsh -s who
  159.  
  160.           will run the who command 'remotely' to list the current
  161.           users.
  162.  
  163.              tupload -v -f <filename> ... /tmp
  164.  
  165.           will copy the listed files into the /tmp directory and
  166.           provide CPS statistics.
  167.  
  168.              tredir 4000 23
  169.  
  170.           will map port 4000 to 23 and put itself in the background.
  171.           Then, typing
  172.  
  173.              telnet 0 4000
  174.  
  175.           should give you a login prompt that works.  If you're
  176.           running X, you should be able to use _t_x_c_o_n_n to establish a
  177.           new display (screen) that maps to the existing screen.
  178.  
  179.           Be sure to run ./test on both the local and remote systems,
  180.           particularly if the systems use different architectures.
  181.  
  182.      BBBBUUUUGGGGSSSS
  183.           _L_i_n_e_c_h_e_c_k is too slow.  When run with ./test daemons, the
  184.           _t_r_s_h client may not initialize the 'remote' tty very well.
  185.  
  186.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  187.           _t_e_r_m(1), _t_e_r_m__c_l_i_e_n_t_s(1)
  188.  
  189.      AAAAUUUUTTTTHHHHOOOORRRR
  190.           Michael O'Reilly, oreillym@tartarus.uwa.edu.au
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                           (printed 7/3/94)
  196.  
  197.  
  198.  
  199.